home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / goodies / qtstdcompr / qtstdcompr.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.5 KB  |  57 lines

  1. //////////
  2. //
  3. //    File:        QTStdCompr.h
  4. //
  5. //    Contains:    Sample code for using QuickTime's standard image compression dialog routines.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Based on existing code by Apple Developer Technical Support, which was itself
  9. //                based on the code in Chapter 3 of Inside Macintosh: QuickTime Components.
  10. //
  11. //    Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  12. //
  13. //    Change History (most recent first):
  14. //
  15. //       <1>         04/22/98    rtm        first file
  16. //       
  17. //////////
  18.  
  19. //////////
  20. //
  21. // header files
  22. //       
  23. //////////
  24.  
  25. #include <ImageCompression.h>
  26. #include <Movies.h>
  27. #include <QuickTimeComponents.h>
  28. #include <StandardFile.h>
  29.  
  30. #include "QTUtilities.h"
  31.  
  32.  
  33. //////////
  34. //
  35. // constants
  36. //       
  37. //////////
  38.  
  39. #define kImageFileCreator                FOUR_CHAR_CODE('ogle')
  40. #define kSaveMoviePrompt                "Save compressed image as:"
  41. #define kSaveMovieFileName                "Untitled.mov"
  42. #define kButtonTitle                    "Defaults"
  43.  
  44.  
  45. //////////
  46. //
  47. // function prototypes
  48. //       
  49. //////////
  50.  
  51. void                            QTStdCompr_PromptUserForImageFileAndCompress (void);
  52. void                            QTStdCompr_PromptUserForDiskFileAndSaveCompressed (Handle theHandle, ImageDescriptionHandle theDesc);
  53. void                            QTStdCompr_InstallExtendedProcs (ComponentInstance theComponent, long theRefCon);
  54. void                            QTStdCompr_RemoveExtendedProcs (void);
  55. PASCAL_RTN Boolean                QTStdCompr_FilterProc (DialogPtr theDialog, EventRecord *theEvent, short *theItemHit, long theRefCon);
  56. PASCAL_RTN short                QTStdCompr_ButtonProc (DialogPtr theDialog, short theItemHit, void *theParams, long theRefCon);
  57.